package ch.ifage.ws.soap;

import javax.inject.Inject;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;

import ch.ifage.business.dom.Step;
import ch.ifage.business.service.WorkflowsServiceImplMock;

/**
 * 
 * @author Christian
 *
 */
@WebService
@SOAPBinding(style = Style.RPC)
public class WorkFlowInfoImpl implements WorkFlowInfo {

	/**
	 * Stocks les WF.
	 */
	@Inject
	private WorkflowsServiceImplMock wfsService;

	/**
	 * @param string to find in the logs.
	 * @return the step that contains the string or null.
	 */
	public Step getStepLogContains(String string) {
		wfsService  = new WorkflowsServiceImplMock();
		return wfsService.getWfsService().getStepLogContains(string);
	}

}
